import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import config from "./config.js"
import axios from "axios"
import { ElMessage } from "element-plus";

const app = createApp(App)
app.use(store)
app.use(router)
app.config.globalProperties.$config = config
axios.defaults.baseURL = config.base_url
app.config.globalProperties.$http = axios;
app.use(ElMessage);//在app上使用message组件

app.config.globalProperties.$message = ElMessage; //挂载到app实例上
app.use(ElementPlus, {
    config: {
    }
})

app.mount('#app')